
<?php
if (!defined('APP_PATH')) {
	define('APP_PATH', $_SERVER['DOCUMENT_ROOT']."/bdACPA");
}
//**integration de la bibliothèque smaty**//
$smartyFile = APP_PATH.'/lib/Smarty-3.1.8/libs/Smarty.class.php';
if (file_exists($smartyFile)){
	require_once($smartyFile);
} else {
	echo "Classe Smarty.class.php manquante";
}
$smarty = new Smarty();

 $smarty = new Smarty();
 $smarty->setTemplateDir(APP_PATH.'/UI/templates/');
 $smarty->setCompileDir(APP_PATH.'/UI/templates_c/');
 $smarty->setConfigDir(APP_PATH.'/UI/configs/');
 $smarty->setCacheDir(APP_PATH.'/UI/cache/');
$smarty->assign('name','Ned');

$smarty->display('test.tpl');
?>